﻿<phone:PhoneApplicationPage 
    x:Class="STEM123.CreateContent"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
        	<RowDefinition Height="Auto"/>
        	<RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="STEM123" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="Term" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" FontSize="64"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        	<Button x:Name="AudioButton" Content="audio" HorizontalAlignment="Left" Height="88" Margin="12,0,0,34" VerticalAlignment="Bottom" Width="136" RenderTransformOrigin="0.5,0.5" Tap="onAudioTap" BorderThickness="0" />
        	<Button x:Name="VideoButton" Content="video" Height="88" Margin="153,0,162,34" VerticalAlignment="Bottom" Tap="onVideoTap" BorderThickness="0" />
        	<Button x:Name="TextButton" Content="text" HorizontalAlignment="Right" Height="88" Margin="0,0,18,34" VerticalAlignment="Bottom" Width="144" Tap="onTextTap" BorderThickness="0" />
        	<TextBlock HorizontalAlignment="Left" Height="38" Margin="12,396,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="422" Name="createBlock" Text="Please select media to answer the question." FontWeight="Bold" />
            <TextBlock Height="74" HorizontalAlignment="Left" Margin="12,57,0,0" Name="questionBlock" Text="Please select a question to be answered in this slide." VerticalAlignment="Top" Width="422" FontWeight="Bold" TextWrapping="Wrap" />
            <ListBox Height="260" HorizontalAlignment="Left" Margin="12,121,0,0" Name="listQuestions" VerticalAlignment="Top" Width="422" ItemsSource="{Binding}" BorderBrush="#00FCF5F5" SelectionChanged="listQuestions_SelectionChanged">
                <ListBoxItem Content="What is it?" Height="51" FontSize="40" />
                <ListBoxItem Content="How it is made?" Height="50" FontSize="40" />
                <ListBoxItem Content="How is it used in real life?" Height="55" FontSize="37.333" />
                <ListBoxItem Content="When it is used?" Height="48" FontSize="40" />
                <ListBoxItem Content="Why do we need it?" Height="56" FontSize="40" />
            </ListBox>
            <TextBlock Height="30" HorizontalAlignment="Right" Margin="0,6,0,0" Name="slideCounter" Text="Slide 1/3" VerticalAlignment="Top" Width="86" />
        </Grid>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar.add.png" Text="add slide" Click="AddSlide" />
            <shell:ApplicationBarIconButton IconUri="/Images/play.png" Text="play" Click="PlayPresentation" />
            <shell:ApplicationBarIconButton IconUri="/Images/upload.png" Text="publish" Click="PublishPresentation" />
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
